package router

import (
	"github.com/gin-gonic/gin"
	"person-mgr/handles"
)

func Init() *gin.Engine {
	r := gin.Default()
	r.POST("/login", handles.Login)
	r.POST("/register", handles.Register)
	r.GET("/list", handles.List)
	r.GET("/find", handles.Find)
	return r
}
